@extends('layout.index')
@section('title','退换货修改')
@section('content')
	<div class="mws-panel grid_8">
    	<div class="mws-panel-header">
        	<span>退换货修改</span>
        </div>
        <div class="mws-panel-body no-padding">
        	<form action="/admin/regoods/update" method='post' class="mws-form">
        		@if(count($errors) > 0)
        			<div class="mws-form-message error">
        				修改失败!
        				<ul>
        					@foreach($errors->all() as $error)
								<li>{{ $error }}</li>
        					@endforeach
        				</ul>
        			</div>
        		@endif

        		<div class="mws-form-inline">
        			<div class="mws-form-row">
        				<label class="mws-form-label">订单号</label>
        				<div class="mws-form-item">
        					<input type="text" name='order_code' readonly value='{{$reGoodsinfo->order_code}}' class="smallinfo">
        				</div>
        			</div>
                    
                    <div class="mws-form-row">
                        <label class="mws-form-label">用户名</label>
                        <div class="mws-form-item">
                            <input type="text" name='username' readonly value='{{$reGoodsinfo->username}}' class="smallinfo">
                        </div>
                    </div>
                    
                    <div class="mws-form-row">
                        <label class="mws-form-label">商品名</label>
                        <div class="mws-form-item">
                            <input type="text" name='goods_name' readonly value='{{$reGoodsinfo->goods_name}}' class="smallinfo">
                        </div>
                    </div>

                    
                    <div class="mws-form-row">
                        <label class="mws-form-label">联系方式</label>
                        <div class="mws-form-item">
                            <input type="text" name='phone' readonly value='{{$reGoodsinfo->phone}}' class="smallinfo">
                        </div>
                    </div>
                    
                    
                    <div class="mws-form-row">
                        <label class="mws-form-label">状态</label>
                        <div class="mws-form-item">
                            <select class="smaluserinfo" name='statuss'>
                                <option value='0' @if(!empty($reGoodsinfo->statuss) &&$reGoodsinfo->statuss == 0)
                                                    selected
                                                  @endif>申请退货</option>
                                <option value='1' @if(!empty($reGoodsinfo->statuss) &&$reGoodsinfo->statuss == 1)
                                                    selected
                                                  @endif>申请换货</option>
                                <option value='2' @if(!empty($reGoodsinfo->statuss) &&$reGoodsinfo->statuss == 2)
                                                    selected
                                                  @endif>已完成</option>
                            </select>
                        </div>
                    </div>
                    
                    <input type="hidden" name='id' value='{{$reGoodsinfo->id}}'>
                    
        			{{csrf_field()}}	
        		</div>
        		<div class="mws-button-row">
        			<input type="submit" class="btn btn-primary" value="修改">
        		</div>
        	</form>
        </div>    	
    </div>
@endsection